﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Text;
using System.Web.Configuration;
using Maverick.Domain.Abstract;
using Maverick.Domain.Entities;
using MWPF.Utilities.DataCleansing;

namespace Maverick.Domain.Concrete
{
    public class SqlConfigurationRepository : IConfigurationRepository
    {
        private Table<Skin> skinsTable;
        
        public SqlConfigurationRepository (string connectionString)
        {
            DataContext dc = new DataContext(connectionString);
            skinsTable = dc.GetTable<Skin>();
        }

        public IQueryable<Skin> Skins
        {
            get
            {
                return skinsTable;
            }
        }
    }
}
